﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;

namespace ZhongJia.Lock.Infrastructure.Models
{
    public interface IPageable : IEnumerable
    {
        int PageIndex { get; set; }

        int PageSize { get; set; }

        int TotalCount { get; set; }

        int TotalPages { get; }

        bool HasPreviousPage { get; }

        bool HasNextPage { get; }

        int FirstItemIndex { get; }

        int LastItemIndex { get; }

        bool IsFirstPage { get; }

        bool IsLastPage { get; }
    }

    public interface IPagedList<T> : IPageable, IList<T>
    {
    }
}
